package cn.smbms.service.bill;

import cn.smbms.dao.bill.BillMapper;
import cn.smbms.dao.provider.ProviderMapper;
import cn.smbms.pojo.Bill;
import cn.smbms.pojo.Provide;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("billService")
public class BillServiceImpl implements BillService {



    public BillMapper getBillMapper(){return billMapper;}

    public void setBillMapper(BillMapper billMapper) {
        this.billMapper = billMapper;
    }

    @Autowired
    private BillMapper billMapper;


    @Override
    public List<Bill> getProvideListByIdMap(Bill bill) {
        return billMapper.getProvideListByIdMap(bill);
    }

    @Override
    public int add(Bill bill) {
        return billMapper.add(bill);
    }

    @Override
    public int update(Bill bill) {
        return billMapper.update(bill);
    }

    @Override
    public int del(Bill bill) {
        return billMapper.del(bill);
    }


}
